import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from 'element-ui'; // 引入ElementUI核心JS
import 'element-ui/lib/theme-chalk/index.css'; // 引入ElementUI核心样式
Vue.use(ElementUI) // 告诉Vue我要使用ElementUI

import Login from "../views/Login";
import AboutView from "../views/AboutView";
import Novel from "../views/Novel";
import Write from "../views/Write";
import Film from "../views/Film";
import Log from "../views/Log";
import Department from "../views/Department";
import Permissions from "../views/Permissions";
import User from "../views/User";
import UserPricture from "../views/UserPricture";


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/about',
      name: 'about',
      component: AboutView,
    },
    {
      path: '/novel',
      name: 'novel',
      component: Novel
    },
    {
      path: '/writer',
      name: 'writer',
      component: Write
    },
    {
      path: '/film',
      name: 'film',
      component: Film
    },
    {
      path: '/log',
      name: 'log',
      component: Log
    },
    {
      path: '/department',
      name: 'department',
      component: Department
    },
    {
      path: '/permissions',
      name: 'permissions',
      component: Permissions
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/userpicture',
      name: 'userpicture',
      component: UserPricture
    },
  ]
})
